Docs v3.2.1
Overview FAQ
Get Started
Quick Start Setup Reference Build & Deploy Sample Scene
Learn
Concepts Architecture Touch Pieces Hardware
Guides
Touch Piece Interaction Design Simulator Profile Switcher Player Management Pause Menu Save Game System Performance
Reference
API Reference
More
AI Assistant Changelog Support License

Namespaces

  • Core
  • Input
  • Save
  • Session

Board

Board.Save.ImageProcessor

ImageProcessor.LoadTextureFromPNG(byte[]) Method

Converts a byte array containing PNG image data to a Texture2D.

public static Texture2D LoadTextureFromPNG(byte[] pngBytes);

Parameters

pngBytes System.Byte[]

The PNG image data as bytes.

Returns

UnityEngine.Texture2D
A UnityEngine.Texture2D containing the loaded image if successful; otherwise null.

© 2026 Harris Hill Products Inc